<?php
	if(is_array($_POST['color_id'])) {
		$color_id = $_POST['color_id'];
		$sql = "DELETE FROM `tbl_color`  WHERE `color_id` IN (". implode (',',$color_id) .")";
	} else { 
		$color_id = $params[2]; 
		$sql = "DELETE FROM `tbl_color`  WHERE `color_id` = '$color_id' LIMIT 1"; 
	}
	mysql_query($sql);
	exit;
?>